<template>
  <div id="app">
    <Sidebar />
    <div class="main-content" :class="{ 'sidebar-open': isOpen }">
      <h1>Main Content</h1>
      <p>This is the main content area.</p>
    </div>
  </div>
</template>

<script>
import Sidebar from "./Sidebar.vue"
export default {
  components: {
    Sidebar,
  },
}
</script>

<style>
#app {
  display: flex;
}

.main-content {
  flex: 1;
  padding: 20px;
  transition: margin-left 0.3s ease;
}

.main-content.sidebar-open {
  margin-left: 250px;
}
</style>
